package com.cskaoyan;

import com.cskaoyan.bean.City;
import com.cskaoyan.mapper.CityMapper;
import com.cskaoyan.mapper.impl.CityMapperImpl;

import java.util.List;

public class MybatisMain {

    public static void main(String[] args) {

        CityMapper cityMapper = new CityMapperImpl();

        City city = cityMapper.selectCityById(4);

        System.out.println(city);

        List<City> cityList = cityMapper.selectAllCity();

        System.out.println(cityList);

    }
}
